Page({
  data:{
  question:getApp().getQuestion
  },
  create:function(e){
    var first = getApp()
    var second = getApp()
    if(getApp().getDegree==1){
      var random = Math.floor(Math.random()*1);
      first.getFirst = this.data.random
      second.getSecond = this.data.random
    }
    if (getApp().getDegree== 2) {
      var random = Math.floor(Math.random() * 10);
      this.setData({
        first: random,
        second: random
      })
    }
    if (getApp().getDegree== 3) {
      var random = Math.floor(Math.random() * 100);
      this.setData({
        first: random,
        second: random
      })
    }
    if (getApp().getDegree== 4) {
      var random = Math.floor(Math.random() * 1000);
      this.setData({
        first: random,
        second: random
      })
    }
    if (getApp().getDegree== 5) {
      var random = Math.floor(Math.random() * 10000);
      this.setData({
        first: random,
        second: random
      })
    }
    var question=getApp()
    question.getQuestion =getApp().getfirst+getApp.getSecond
  },

})